package com.xyz.study.netty.guide.nio;

/**
 * time socket client
 */
public class NioTimeClient {
    public static void main(String[] args) {
        String host = "127.0.0.1";
        int port = 8080;
        if (null != args && args.length > 0){
            try{
                port = Integer.parseInt(args[0]);
            } catch (NumberFormatException e){
                e.fillInStackTrace();
            }
        }
        for (int i = 0; i < 3; i++){
            new Thread(new TimeClientHandler(host, port), "TimeClient-" + i).start();
        }

    }

}
